﻿@{
    var totalPages = Model.Paging.TotalPages;
}
<span class="pager-current">@(Model.Paging.CurrentPage + 1)</span> <span class="total-pages">/ @totalPages</span>
@if (Model.Paging.TotalPages > 1 && Model.LinkCreator != null)
{
    <ul @(totalPages > 7 ? "style='height: 188px;'" : "")>
        @for (var i = 0; i < totalPages; i++)
        {
            <li>
                <a href="@Model.LinkCreator.Invoke(i)">@(i + 1)</a>
            </li>
        }
    </ul>
}